package com.gavindon.android.entity

import java.io.Serializable

/**
 * description: 套餐返餐
 * Created by liNan on  2022-3-1 14:36
 */
data class ComboResp(
    val courseOutputDTOList: List<CourseOutputDTO>? = null,
    val details: String? = null,
    val endTime: String? = null,
    val `file`: FileObj? = null,
    val grounding: Int? = null,
    val originalPrice: Double? = null,
    val packageId: String? = null,
    val packageName: String? = null,
    val packageSubjectId: String? = null,
    val packageSubjectName: String? = null,
    val presentPrice: Double? = null,
    val serviceLife: Int? = null,
    val serviceLifeCompany: String? = null,
    val startTime: String? = null,
    val validity: Int = 0
) : Serializable

data class CourseOutputDTO(
    val assistantName: String,
    val courseAnnouncement: String,
    val courseId: String,
    val courseIntroduction: String,
    val courseName: String,
    var validityStartTime: String,
    var validityEndTime: String,
    val courseStatus: String,
    val courseTags: String,
    val courseType: String,
    val externalLink: Int,
    val externalLinkUrl: String,
    val featured: Int,
    val `file`: FileObj,
    val isFree: Int,
    val isInPackage: Int,
    val label: String,
    val lecturerName: String,
    val lessonIsEnd: Int,
    val newest: Int,
    val numLesson: Int,
    val numTotalLesson: Int,
    val originalPrice: Double,
    val payType: Int,
    val popular: Int,
    val presentPrice: Double,
    val publish: Int,
    val recommend: Int,
    val sequenceValue: Int,
    val serviceLife: String,
    val serviceLifeCompany: String,
    val showType: Int,
    val subjectId: String,
    val subjectType: Int,
    val subjectURLName: String,
    val topStatus: Int,
    var validity: Int,
    val videoTotalDuration: Int
) : Serializable

//所有套餐
data class ComboAllResp(
    val children: List<ComboAllResp>,
    val numCourse: Int,
    val parentSubjectId: String,
    val parentSubjectName: String,
    val showType: Int,
    val subjectId: String,
    val subjectName: String,
    val subjectType: Int,
    val subjectType_tx: String,
    val subjectURL: String
)


data class BuyCombo(
    val id: String,
    val isFree: Int,
    val payType: Int,


    )

//生成订单
data class OrderInfoResp(
    val orderId: String,
    val payStatus: Int,
    val payType: Int,
    val userName: String,
    val amount: Double,

    val validityStartTime: String,
    val validityEndTime: String
)

data class CheckCanLookResp(
    val amount: Double,
    val body: String,
    val courseOutputDTO: CourseOutputDTO?,
    val insertTime: String,
    val itemOrderNo: String,
    val itemType: Int,
    val orderId: String,
    val orderPrice: Int,
    val packageOrCourseId: String,
    val packageOrCourseName: String,
    val packageOutputDTO: PackageOutputDTO?,
    val paySource: String,
    val payStatus: Int,
    val paySuccTime: String,
    val payType: Int,
    val userId: String,
    val userName: String,
    val validity: Int,
    val validityEndTime: String,
    val validityStartTime: String
)


data class PackageOutputDTO(
//    val courseOutputDTOList: List<CourseOutputDTOX>,
    val details: String,
    val endTime: String,
    val `file`: FileObj,
    val grounding: Int,
    val originalPrice: Double,
    var packageId: String,
    val packageName: String,
    val packageSubjectId: String,
    val packageSubjectName: String,
    val presentPrice: Double,
    val serviceLife: Int,
    val serviceLifeCompany: String,
    val startTime: String,
    var validityStartTime: String,
    var validityEnTime: String,
    var validity: Int
)

